package com.twu.biblioteca.entity;

public class User {

    public User(String userName, String password, String givenName, String emailAddress, String phoneNumber)
    {
        this.userName = userName;
        this.password = password;
        this.givenName = givenName;
        this.emailAddress = emailAddress;
        this.phoneNumber = phoneNumber;
    }

    public final String getUserName() {
        return userName;
    }

    public final String getPassword(){
        return password;
    }


    private String getGivenName()
    {
        return givenName;
    }

    private String getEmailAddress() {
        return emailAddress;
    }

    private String getPhoneNumber() {
        return phoneNumber;
    }

    @Override
    public String toString() {
        return "Name: " + getGivenName() + "\n"
                + "Email: " + getEmailAddress() + "\n"
                + "Phone: " + getPhoneNumber();
    }

    private String userName;
    private String password;
    private String givenName;
    private String emailAddress;
    private String phoneNumber;
}
